cmake_minimum_required(VERSION 3.10)

project(ContractLoader)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)

find_package(Qt5 COMPONENTS Core REQUIRED)

add_executable(${PROJECT_NAME}
    main.cpp
    ContractLoader.cpp
    ContractLoader.h
    TrLoader.h
    TrLoader.cpp
)

target_link_libraries(${PROJECT_NAME}
    PRIVATE
    Qt5::Core
    Common
)

install(TARGETS ${PROJECT_NAME}
    RUNTIME DESTINATION bin
) 